" REMAPS nnoremap gf :Telescope git_files "Harpoon nnoremap pf :lua require("harpoon.mark").add_file() nnoremap pf :lua require("harpoon.ui").toggle_quick_menu() nnoremap pf :lua require("harpoon.ui").toggle_quick_menu() "set timeout timeoutlen=1000 ttimeoutlen=100 "inoremap :w " "netrw to automatically change working directory au FileType netrw nmap % mt:!tmux split-window -h;tmux select-layout even-horizontal au FileType netrw nmap z mt:!tmux split-window -h; tmux select-pane -L; tmux kill-pane; tmux select-layout even-horizontal "open current NETRW directory in a new tab nnoremap z mt:!tmux split-window -h; tmux select-pane -L; tmux kill-pane; tmux select-layout even-horizontal "open current NETRW directory in a new tab nnoremap % mt:!tmux split-window -h;tmux select-layout even-horizontal function! OpenInTmuxPane() " Get the current directory from the netrw buffer let l:current_dir = b:netrw_curdir " Get the name of the file under the cursor let l:filename = expand('') " Combine the directory and filename to get the full path let l:filepath = l:current_dir . '/' . l:filename " Prepare the tmux command let l:tmux_command = "tmux split-window -h 'nvim " . l:filepath . "'" " Call the command call system(l:tmux_command) endfunction nnoremap 4 :call OpenInTmuxPane() "netrw copy a file au FileType netrw nmap yp mt:!cp -r ./ "netrw delete under cursor au FileType netrw nmap x mt:!rm -rf "netrw mkdir command au FileType netrw nmap mkdir mt:!mkdir -p "let ctrlp search for hidden files and directories let g:ctrlp_show_hidden = 1 " Neovim :Terminal tmap " indentLine let g:indentLine_char = '▏' let g:indentLine_defaultGroup = 'NonText' " Disable indentLine from concealing json and markdown syntax (e.g. ```) "let g:vim_json_syntax_conceal = 0 "let g:vim_markdown_conceal = 0 "let g:vim_markdown_conceal_code_blocks = 0 " TagBar let g:tagbar_width = 40 " Limelight let g:limelight_conceal_ctermfg = 'gray' let g:limelight_conceal_guifg = 'gray' nmap l :Limelight!! xmap l :Limelight!! autocmd! User GoyoEnter Limelight autocmd! User GoyoLeave Limelight! " Startify "let g:startify_fortune_use_unicode = 1 "" Startify + NERDTree on start when no file is specified "let &tags = expand("%:p") "COC VIM START " Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable " delays and poor user experience. set updatetime=300 " Don't pass messages to |ins-completion-menu|. set shortmess+=c " Always show the signcolumn, otherwise it would shift the text each time " diagnostics appear/become resolved. if has("nvim-0.5.0") || has("patch-8.1.1564") "" Recently vim can merge signcolumn and number column into one set signcolumn=number else set signcolumn=yes endif " FixCursorHold for better performance let g:cursorhold_updatetime = 100 " context.vim let g:context_nvim_no_redraw =1 """ Filetype-Specific Configurations " HTML, XML, Jinja autocmd FileType html setlocal shiftwidth=2 tabstop=2 softtabstop=2 autocmd FileType css setlocal shiftwidth=2 tabstop=2 softtabstop=2 autocmd FileType xml setlocal shiftwidth=2 tabstop=2 softtabstop=2 autocmd FileType htmldjango setlocal shiftwidth=2 tabstop=2 softtabstop=2 autocmd FileType htmldjango inoremap {{ {{ }} autocmd FileType htmldjango inoremap {% {% %} autocmd FileType htmldjango inoremap {# {# #} " Markdown and Journal autocmd FileType markdown setlocal shiftwidth=2 tabstop=2 softtabstop=2 autocmd FileType journal setlocal shiftwidth=2 tabstop=2 softtabstop=2 "scroll sync lock nnoremap sl :set scb! nmap no :set hlsearch! let g:netrw_bufsettings = 'noma nomod nu nobl nowrap ro'