SHARE
TWEET

Untitled

a guest Aug 18th, 2019 111 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. call plug#begin('~/.local/share/nvim/plugged')
  2.     " Plug 'jiangmiao/auto-pairs'
  3.     Plug 'tpope/vim-surround'
  4.     Plug 'tpope/vim-commentary'
  5.     Plug 'tikhomirov/vim-glsl'
  6. call plug#end()
  7.  
  8. let $NVIM_TUI_ENABLE_CURSOR_SHAPE = 1
  9.  
  10. if exists('$TMUX')
  11.     let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
  12.     let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
  13.  
  14.     let &t_SI = "\<Esc>Ptmux;\<Esc>\e[5 q\<Esc>\\"
  15.     let &t_EI = "\<Esc>Ptmux;\<Esc>\e[2 q\<Esc>\\"
  16. else
  17.     let &t_SI = "\e[5 q"
  18.     let &t_EI = "\e[2 q"
  19. endif
  20.  
  21. " Colours
  22. set background=dark
  23. color custom
  24. set cursorline
  25.  
  26. " UI
  27. set laststatus=0
  28.  
  29. " Line numbers
  30. set relativenumber
  31. set number
  32.  
  33. " Tabs
  34. set tabstop=4
  35. set softtabstop=0 noexpandtab
  36. set shiftwidth=4
  37. set list lcs=tab:\▏\ ,trail:·
  38. set breakindent
  39. set linebreak
  40.  
  41. " Scroll
  42. set scrolloff=5
  43.  
  44. " Misc
  45. set hidden
  46.  
  47. " Search
  48. set incsearch
  49. set ignorecase
  50.  
  51. " Move line up and down
  52. nmap <C-K> :m -2<enter>
  53. nmap <C-J> :m +1<enter>
  54. imap <C-K> <esc>:m -2<enter>i
  55. imap <C-J> <esc>:m +1<enter>i
  56.  
  57. " Switch panes
  58. map <C-h> <C-W>h
  59. map <C-l> <C-W>l
  60. map <C-j> <C-W>j
  61. map <C-k> <C-W>k
  62.  
  63. " Change pwd to current file location
  64. autocmd BufEnter * silent! lcd %:p:h
  65.  
  66. autocmd BufNewFile,BufRead *.rasi set syntax=css
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top