Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set nocompatible
- filetype plugin indent on
- syntax on
- "Colorscheme
- set background=dark
- """""""""""" Key Map
- imap jj <Esc>
- " shortcut to save
- nmap <leader>, :w<cr>
- set pastetoggle=<F2>
- nmap <CR> o<Esc>
- nnoremap <up> <nop>
- nnoremap <down> <nop>
- nnoremap <left> <nop>
- nnoremap <right> <nop>
- "inoremap <up> <nop>
- "inoremap <down> <nop>
- "inoremap <left> <nop>
- "inoremap <right> <nop>
- """""""""""" General
- let mapleader = ","
- set nowrap " don't wrap lines
- set backspace=indent,eol,start " allow backspacing over everything in insert mode
- set backspace=2 " make backspace work like most other apps
- set autoindent " always set autoindenting on
- set smartindent
- set copyindent " copy the previous indentation on autoindenting
- "Setting related to tab
- set tabstop=4 shiftwidth=4 expandtab
- set softtabstop=4 " makes the spaces feel like real tabs
- set shiftround " use multiple of shiftwidth when indenting with '<' and '>'
- "Search related conf also look ~/.vim/vimrc/search-keybindings.vim
- set showmatch " set show matching parenthesis
- set ignorecase " ignore case when searching
- set smartcase " ignore case if search pattern is all lowercase,
- set nolazyredraw " don't redraw while executing macros
- set hlsearch " highlight search terms
- set incsearch " show search matches as you type
- set history=1000 " remember more commands and search history
- set undolevels=1000 " use many muchos levels of undo
- set wildignore=*.swp,*.bak,*.pyc,*.class
- set title " change the terminal's title
- set visualbell " don't beep
- set noerrorbells " don't beep
- set scrolloff=7 "when jumping makes at least 7 lines from top and bottom
- set mouse=a
Add Comment
Please, Sign In to add comment