-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
executable file
·98 lines (80 loc) · 2.89 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
set nocompatible
set showmatch
set wrapmargin=8
set smartindent
set tabstop=4 "set tab character to 4 characters
set expandtab "turn tabs into whitespace
set shiftwidth=4 "indent width for autoindent
filetype on
filetype indent on "indent depends on filetype
syntax on
set ruler
set expandtab
set number
colorscheme quagmire
"80+ chars error
match ErrorMsg '\%>80v.+'
"Turn on incremental search with ignore case (except explicit caps)
set incsearch
set ignorecase
set smartcase
"Enable indent folding
set foldenable
set fdm=indent
"Set space to toggle a fold
nnoremap <space> za
filetype plugin on
set ofu=syntaxcomplete#Complete
"supertab omni with TAB no ctrol+o+x
let g:SuperTabDefaultCompletionType = "<C-X><C-O>"
let g:SuperTabDefaultCompletionType = "context"
let Tlist_Auto_Open=0 " let the tag list open automagically
filetype plugin indent on " load filetype plugins/indent settings
set autochdir " always switch to the current file directory
set backspace=indent,eol,start " make backspace a more flexible
set backup " make backup files
set backupdir=~/.vim/backup " where to put backup files
set clipboard+=unnamed " share windows clipboard
set directory=~/.vim/tmp " directory to place swap files in
set fileformats=unix,dos,mac " support all three, in this order
set hidden " you can change buffers without saving
" (XXX: #VIM/tpope warns the line below could break things)
set iskeyword+=_,$,@,%,# " none of these are word dividers
set mouse=a " use mouse everywhere
set noerrorbells " don't make noise
"Search current dir and upwards until a tags file is found
set tags=tags;/
"Esc alternative
:inoremap kj <Esc>
"autoclose tags
":au Filetype html,xml,xsl source ~/.vim/scripts/closetag.vim
":let g:closetag_html_style=1
":source ~/.vim/scripts/closetag.vim
:au Filetype * source ~/.vim/scripts/closetag.vim
"remember windows and pass globals to mksession
set sessionoptions+=resize,winpos,globals
"reopen last command in its window
"Conqueshell test
"if exists("ConqueTerm_LastCommand")
""retrieve buffer name and command
"if bufexists(ConqueTerm_LastCommand)
""execute command in buffer
"":execute "buffer " nextbuf
"endif
"endif
"pass line to external cmomand (test,not working atm)
"map !s :! ./hours.php % <C-r>=line('.')<CR><CR>
"para ctags mac
"let Tlist_Ctags_Cmd='/sw/bin/ctags'
"actionscript syntax
au Bufread,BufNewFile *.as set filetype=actionscript
" actionscript language for ctags
let tlist_actionscript_settings = 'actionscript;c:class;f:method;p:property;v:variable'
" Marvim macros
"let marvim_store = '.vim/plugin/marvim/macros/'
let marvim_store = '/Users/jesusmejuto/.vim/plugin/marvim/'
let marvim_find_key = 'mf' " change find key from <F2> to 'mf'
let marvim_store_key = 'ms' " change store key from <F3> to 'ms'
"let marvim_register = 'c' " change used register from 'q' to 'c'
"let marvim_prefix = 0 " disable default syntax based prefix
set hlsearch