Skip to content

Instantly share code, notes, and snippets.

@getsueineko
Last active July 13, 2021 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save getsueineko/3b230b8149a417c443fe69edd0202908 to your computer and use it in GitHub Desktop.
Save getsueineko/3b230b8149a417c443fe69edd0202908 to your computer and use it in GitHub Desktop.
My basic VIM config
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" my plugins
Plugin 'itchyny/lightline.vim'
Plugin 'tpope/vim-surround'
Plugin 'preservim/nerdtree'
Plugin 'airblade/vim-gitgutter'
Plugin 'flazz/vim-colorschemes'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
" settings for coding
set autoindent
set expandtab
set smarttab
set tabstop=4
set softtabstop=4
set shiftwidth=4
" line numbering and syntax highlighting
set number
syntax on
" shows of the command being executed
set showcmd
" 256 color support and theme
set t_Co=256
colorscheme molokai
" status bar support
set laststatus=2
" search results highlighting and incremental search
set hlsearch
set incsearch
set encoding=utf8
set ffs=unix,dos,mac
" mouse support
set mouse=a
" enable backspace
:set backspace=indent,eol,start
" word wrap, not letter wrap
set linebreak
set dy=lastline
" enable work with the OS clipboard
set clipboard^=unnamed,unnamedplus
" key mapping
map <C-o> :NERDTreeToggle<CR> " - CTRL+O opens NerdTree in left side
nnoremap <C-Left> :bp<CR> " - CTRL+Left move to previous buffer
nnoremap <C-Right> :bn<CR> " - CTRL+Right move to next buffer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment