forked from bogdangi/env
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvimrc
38 lines (34 loc) · 796 Bytes
/
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
" <F8> File encoding for open
" ucs-2le - MS Windows unicode encoding
map <F8> :execute RotateEnc()<CR>
vmap <F8> <C-C><F8>
imap <F8> <C-O><F8>
let b:encindex=0
function! RotateEnc()
let y = -1
while y == -1
let encstring = "#koi8-r#cp1251#8bit-cp866#utf-8#ucs-2le#"
let x = match(encstring,"#",b:encindex)
let y = match(encstring,"#",x+1)
let b:encindex = x+1
if y == -1
let b:encindex = 0
else
let str = strpart(encstring,x+1,y-x-1)
return ":e ++enc=".str
endif
endwhile
endfunction
call pathogen#infect()
call pathogen#incubate()
call pathogen#helptags()
syntax on
filetype plugin indent on
"autocmd vimenter * NERDTree
map <C-n> :NERDTreeToggle<CR>
" Set 4 spaces on tab
set tabstop=4
set shiftwidth=4
set expandtab
set number
set list