forked from spf13/spf13-vim
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.vimrc.fork
85 lines (65 loc) · 2.84 KB
/
.vimrc.fork
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
"""""""""""""""""""""""""""""
" => Set font and font-size
"""""""""""""""""""""""""""""
"set gfn=Monaco:h16
colorscheme solarized
"""""""""""""""""""""""""""""
" => Quick edit
"""""""""""""""""""""""""""""
" Map space to / (search) and c-space to ? (backgwards search)
map <space> /
" Begining & End of line in Normal mode
noremap H ^
noremap L g_
" Remove the Windows ^M - when the encodings gets messed up
noremap <Leader>m mmHmt:%s/<C-V><cr>//ge<cr>'tzt'm
"""""""""""""""""""""""""""""
" => Auto tab
"""""""""""""""""""""""""""""
autocmd FileType php setl shiftwidth=4 tabstop=4 softtabstop=4 expandtab
autocmd FileType ruby,erb,eruby,yaml setl shiftwidth=2 tabstop=2 softtabstop=2 expandtab
autocmd FileType md,mkd,markdown setl shiftwidth=2 tabstop=2 softtabstop=2 expandtab
autocmd FileType jade,html,coffee,less,slim,js setl shiftwidth=2 tabstop=2 softtabstop=2 expandtab
au BufNewFile,BufReadPost *.php setl shiftwidth=4 tabstop=4 softtabstop=4 expandtab
au BufNewFile,BufReadPost *.ruby setl shiftwidth=2 tabstop=2 softtabstop=2 expandtab
au BufNewFile,BufReadPost *.erb setl shiftwidth=2 tabstop=2 softtabstop=2 expandtab
au BufNewFile,BufReadPost *.html setl shiftwidth=2 tabstop=2 softtabstop=2 expandtab
au BufNewFile,BufReadPost *.jade setl shiftwidth=2 tabstop=2 softtabstop=2 expandtab
au BufNewFile,BufReadPost *.slim setl shiftwidth=2 tabstop=2 softtabstop=2 expandtab
au BufNewFile,BufReadPost *.less setl shiftwidth=2 tabstop=2 softtabstop=2 expandtab
au BufNewFile,BufReadPost *.js setl shiftwidth=2 tabstop=2 softtabstop=2 expandtab
au BufNewFile,BufReadPost *.coffee setl shiftwidth=2 tabstop=2 softtabstop=2 expandtab
au BufNewFile,BufReadPost *.md setl shiftwidth=2 tabstop=2 softtabstop=2 expandtab
autocmd FileType ruby,eruby,yaml,php setl foldmethod=manual
"""""""""""""""""""""""""""""
" => Airline
"""""""""""""""""""""""""""""
" Set Airline theme
let g:airline_theme = 'solarized'
" Set the separator used on the left side >
let g:airline_left_sep='>'
" Set the separator used on the right side >
let g:airline_right_sep='<'
" Enable modified detection
let g:airline_detect_modified = 1
" Enable paste detection
let g:airline_detect_paste=1
" Integrating with powerline fonts
"let g:airline_powerline_fonts = 1
" Set bufferline filename"
let g:airline_section_c = '%t'
"""""""""""""""""""""""""""""
" => Bufferline
"""""""""""""""""""""""""""""
" denotes whether bufferline should automatically echo to the command bar
let g:bufferline_echo = 0
"""""""""""""""""""""""""""""
" => Vimwiki
"""""""""""""""""""""""""""""
set nocompatible
filetype plugin on
syntax on
let g:vimwiki_hl_cb_checked = 1
let g:vimwiki_ext2syntax = {'.md': 'markdown', '.mkd': 'markdown', '.wiki': 'media'}
let g:vimwiki_list = [{'path': '~/vimwiki/md/', 'syntax': 'markdown', 'ext': '.md'},
\ {'path': '~/vimwiki/media/', 'syntax': 'media', 'ext': '.wiki'}]