-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc.after
More file actions
executable file
·73 lines (58 loc) · 1.76 KB
/
.vimrc.after
File metadata and controls
executable file
·73 lines (58 loc) · 1.76 KB
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
"===Behind the scenes config===
filetype plugin on "detect filetype
set history=1000 "more undo steps
runtime macros/matchit.vim "extend bracket matching to if, else
"===GUI Customizations===
color molokai
set guifont=Source\ Code\ Pro:h14
let NERDTreeShowBookmarks=1 "show list of bookmarks on load
set fuopt=maxvert,maxhorz "make fullscreen mode actually go to fullscreen
set nolist "don't show invisible characters
set number "show line numbers
set scrolloff=3 "more context around cursor
set cursorline "show current line
"===Key mappings===
nnoremap ; :
nnoremap <esc> :noh<return><esc>
nnoremap <leader>w :vnew<return><esc>
"shortcut for substitute (search and replace)
nmap S :%s/
""==lorem ipsum text==
nmap <leader>ipsum :Loremipsum!
"===auto-close open brackets===
inoremap { {}<Left>
inoremap {<CR> {<CR>}<Esc>O
inoremap {{ {
inoremap {} {
inoremap ( ()<Left>
inoremap (<CR> (<CR>)<Esc>O
inoremap () ()
inoremap (( (
inoremap [ []<Left>
inoremap [<CR> [<CR>]<Esc>O
inoremap [[ [
inoremap [] []
inoremap <% <%%><Right>
inoremap <%<CR> <%<CR>%><Esc>O
"==keymappings for multiedit==
"don't make these keys silent
nmap <leader>md :MultieditClear<CR>
nmap <leader>mr :MultieditReset<CR>
"==keymappings for navigating splits==
nmap <leader><left> :wincmd h <return>
nmap <leader><right> :wincmd l <return>
"==making tabs pretty===
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
"==improving autocompletion
set wildmenu
set wildmode=list:longest
"==plugin cusomatizations==
let g:NERDCustomDelimiters = { 'dustjs': { 'left': '{!', 'right': '!}' } }
"==disable Janus plugins I don't use==
call janus#disable_plugin('ack.vim')
"=save fold states="
autocmd BufWinLeave *.* mkview
autocmd BufWinEnter *.* silent loadview