dotfiles/nvim/init.vim

26 lines
897 B
VimL
Raw Normal View History

let g:k_nvim_dotfiles_dir = expand('<sfile>:p:h')
let g:k_dotfiles_dir = expand('<sfile>:p:h:h')
2021-09-08 18:10:15 +00:00
let &runtimepath = g:k_nvim_dotfiles_dir.','.&runtimepath.','.g:k_nvim_dotfiles_dir.'/after'
2021-09-09 12:30:21 +00:00
let g:vim_ide = 1
2021-10-25 05:39:56 +00:00
let g:dotfiles_rainbow_indent_opacity = 0.5
2021-09-09 12:30:21 +00:00
2021-06-24 16:52:31 +00:00
source <sfile>:p:h/../dmitmel-dotfiles/nvim/init.vim
2022-06-26 09:00:51 +00:00
if has('nvim')
luafile <sfile>:p:h/init.lua
else
set termguicolors
endif
" Arrow key fix kanged from <https://vim.fandom.com/wiki/Fix_arrow_keys_that_display_A_B_C_D_on_remote_shell#Solution_21> {{{
2022-08-08 20:22:33 +00:00
if exists("g:HELP_MY_ARROW_KEYS_ARE_BROKEN")
2022-06-26 09:00:51 +00:00
" the following simply creates an ambiguous mapping so vim fully
" processes the escape sequence for terminal keys, see 'ttimeout' for a
" rough explanation, this just forces it to work
if &term[:4] == "xterm" || &term[:5] == 'screen' || &term[:3] == 'rxvt'
inoremap <silent> <C-[>OC <RIGHT>
endif
endif
" }}}