nixos-config/dotfiles/nvim-init.vim

24 lines
2.1 KiB
VimL

set nocompatible
set nu
set ttimeout
set ttimeoutlen=0
set mouse=
set clipboard=unnamedplus
set ruler
set signcolumn=yes
set termguicolors
autocmd!
if $TERM != "xterm" && $TERM != "tmux"
inoremap <C-h> <ESC>:TmuxNavigateLeft<cr>
inoremap <C-j> <ESC>:TmuxNavigateDown<cr>
inoremap <C-k> <ESC>:TmuxNavigateUp<cr>
inoremap <C-l> <ESC>:TmuxNavigateRight<cr>
endif
" Disable tmux navigator when zooming the Vim pane
let g:tmux_navigator_disable_when_zoomed = 1
filetype plugin on
syntax on
nnoremap <CR> :noh<CR><CR>