This commit is contained in:
Nachuan Tang
2022-10-14 15:25:28 -04:00
2 changed files with 31 additions and 9 deletions
+1 -7
View File
@@ -199,7 +199,7 @@
" Map <Leader>ff to display all lines with keyword under cursor
" and ask which one to jump to
nmap <Leader>ff [I:let nr = input("Which one: ")<Bar>exe "normal " . nr ."[\t"<CR>
nmap <Leader>j [I:let nr = input("Which one: ")<Bar>exe "normal " . nr ."[\t"<CR>
" Easier horizontal scrolling
map zl zL
@@ -216,12 +216,6 @@
nmap <Leader>ac <Plug>ToggleAutoCloseMappings
" }
" JSON {
nmap <leader>jt <Esc>:%!python -m json.tool<CR><Esc>:set filetype=json<CR>
let g:vim_json_syntax_conceal = 0
" }
" }
" Functions {
+30 -2
View File
@@ -9,6 +9,7 @@
" Plugin_Preferences
" Theme_Appearance
" Key_Mappings
" Useful_Info
" Environment {
set nocompatible " Must be first line
@@ -29,7 +30,6 @@
endif
Plug 'rust-lang/rust.vim'
Plug 'leafgarland/typescript-vim'
" {
Plug 'alvan/vim-closetag'
@@ -76,6 +76,9 @@
Plug 'mbbill/undotree'
Plug 'tpope/vim-commentary'
" put text in neibouring tmux pane into auto complete
Plug 'wellle/tmux-complete.vim'
" only work with nvim > 0.5
" For other versions, just loading the plugin may
" cause error
@@ -129,6 +132,25 @@ if g:vim_type == 'nvim'
endif
" }
" easymotion/vim-easymotion {
" <Leader>f{char} to move to {char}
map <Leader>f <Plug>(easymotion-bd-f)
nmap <Leader>f <Plug>(easymotion-overwin-f)
" s{char}{char} to move to {char}{char}
nmap s <Plug>(easymotion-overwin-f2)
" Move to line
map <Leader>L <Plug>(easymotion-bd-jk)
nmap <Leader>L <Plug>(easymotion-overwin-line)
" Move to word
map <Leader>w <Plug>(easymotion-bd-w)
nmap <Leader>w <Plug>(easymotion-overwin-w)
" }
" antoinemadec/coc-fzf {
if isdirectory(expand(plugin_dir . "/coc-fzf"))
nnoremap <silent> <space><space> :<C-u>CocFzfList<CR>
@@ -155,7 +177,8 @@ endif
" airblade/vim-rooter {
if isdirectory(expand(plugin_dir . "/vim-rooter"))
let g:rooter_patterns = ['.vscode', '.git']
let g:rooter_patterns = ['.vscode', '.git', '*.sln']
let g:rooter_change_directory_for_non_project_files = 'current'
endif
" }
@@ -561,3 +584,8 @@ endif
nnoremap <C-w>% :vsplit<CR>
nnoremap <C-w>" :split<CR>
" }
"
" Useful_Info{
" show mapping info
" :verbose map ,cf
" }