nvim 1.3 KB

123456789101112131415161718192021222324
  1. " located in ~/.config/nvim/init.vim
  2. set nocompatible " disable compatibility to old-time vi
  3. set showmatch " show matching
  4. set ignorecase " case insensitive
  5. set mouse=v " middle-click paste with
  6. set hlsearch " highlight search
  7. set incsearch " incremental search
  8. set tabstop=4 " number of columns occupied by a tab
  9. set softtabstop=4 " see multiple spaces as tabstops so <BS> does the right thing
  10. set expandtab " converts tabs to white space
  11. set shiftwidth=4 " width for autoindents
  12. set autoindent " indent a new line the same amount as the line just typed
  13. set number " add line numbers
  14. set wildmode=longest,list " get bash-like tab completions
  15. filetype plugin indent on "allow auto-indenting depending on file type
  16. syntax on " syntax highlighting
  17. set mouse=a " enable mouse click
  18. set clipboard=unnamedplus " using system clipboard
  19. filetype plugin on
  20. set cursorline " highlight current cursorline
  21. set ttyfast " Speed up scrolling in Vim
  22. " set spell " enable spell check (may need to download language package)
  23. " set noswapfile " disable creating swap file