aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/init
diff options
context:
space:
mode:
Diffstat (limited to 'vim/init')
-rw-r--r--vim/init/config.vim8
-rw-r--r--vim/init/keymaps.vim2
2 files changed, 5 insertions, 5 deletions
diff --git a/vim/init/config.vim b/vim/init/config.vim
index 39f1c12..2d37b66 100644
--- a/vim/init/config.vim
+++ b/vim/init/config.vim
@@ -161,10 +161,8 @@ augroup InitFileTypesGroup
161 endif 161 endif
162 endfunction 162 endfunction
163 " Edit class and id for javascript files 163 " Edit class and id for javascript files
164 autocmd FileType html,markdown nnoremap <leader>cl :call <SID>ChangeAttr("class")<CR> 164 autocmd FileType html,markdown nnoremap <buffer> <leader>cl :call <SID>ChangeAttr("class")<CR>
165 autocmd BufLeave nunmap <leader>cl 165 autocmd FileType html,markdown nnoremap <buffer> <leader>id :call <SID>ChangeAttr("id")<CR>
166 autocmd FileType html,markdown nnoremap <leader>id :call <SID>ChangeAttr("id")<CR>
167 autocmd BufLeave nunmap <leader>id
168 166
169 " markdown 167 " markdown
170 au FileType markdown setlocal wrap 168 au FileType markdown setlocal wrap
@@ -177,7 +175,7 @@ augroup InitFileTypesGroup
177 if empty(hash_num_at_top) 175 if empty(hash_num_at_top)
178 return "=" 176 return "="
179 else 177 else
180 return ">".(len(hash_num-1)) 178 return ">"..(len(hash_num_at_top))
181 endif 179 endif
182 else 180 else
183 return len(hash_num)-1 181 return len(hash_num)-1
diff --git a/vim/init/keymaps.vim b/vim/init/keymaps.vim
index 504d071..26a3787 100644
--- a/vim/init/keymaps.vim
+++ b/vim/init/keymaps.vim
@@ -58,6 +58,8 @@ nmap <leader>W :set wrap!<CR>
58" Show fold level when it changes 58" Show fold level when it changes
59nnoremap zm zm:set foldlevel<CR> 59nnoremap zm zm:set foldlevel<CR>
60nnoremap zr zr:set foldlevel<CR> 60nnoremap zr zr:set foldlevel<CR>
61" Use l to open fold
62nnoremap <expr> l foldclosed('.') == -1 ? 'l' : 'zo'
61 63
62" :W sudo saves the file 64" :W sudo saves the file
63" (useful for handling the permission-denied error) 65" (useful for handling the permission-denied error)