Created
May 30, 2019 10:12
-
-
Save ideepika/daaac885230c32dcc7260a35a44249c9 to your computer and use it in GitHub Desktop.
vim config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " set leader key | |
| :let mapleader = "," | |
| " set UTF-8 encoding | |
| set enc=utf-8 | |
| set fenc=utf-8 | |
| set termencoding=utf-8 | |
| " disable vi compatibility | |
| set nocompatible | |
| " use indentation of previous line | |
| set autoindent | |
| " use intelligent indentation for C | |
| " configure tabwidth and insert spaces instead of tabs | |
| set tabstop=4 " tab width is 4 spaces | |
| set shiftwidth=4 " indent also with 4 spaces | |
| set expandtab " expand tabs to spaces | |
| " wrap lines at 120 chars. 80 is somewaht antiquated with nowadays displays. | |
| set textwidth=120 | |
| set number | |
| " highlight matching braces | |
| set showmatch | |
| " toggle autoindent for paste | |
| set pastetoggle=<F3> | |
| " use ,y/,p for | |
| noremap <Leader>y "+y | |
| noremap <Leader>p "+p | |
| noremap <Leader>Y "*y | |
| noremap <Leader>P "*p | |
| set clipboard=unnamedplus | |
| "open netrw folders on left instead of right | |
| let g:netrw_altv=1 | |
| "set directory style to tree | |
| let g:netrw_liststyle = 3 | |
| "remove banner view from directory listing | |
| let g:netrw_banner = 0 | |
| "set the width of netrw to 25% | |
| let g:netrw_winsize = 25 | |
| "Vim-Plug plugins | |
| call plug#begin('~/.vim/plugged') | |
| "Plug 'vim-airline/vim-airline-themes' | |
| Plug 'airblade/vim-gitgutter' | |
| Plug 'editorconfig/editorconfig-vim' | |
| Plug 'itchyny/lightline.vim' | |
| Plug 'junegunn/fzf' | |
| Plug 'junegunn/fzf.vim' | |
| Plug 'mattn/emmet-vim' | |
| Plug 'terryma/vim-multiple-cursors' | |
| Plug 'tpope/vim-eunuch' | |
| Plug 'tpope/vim-surround' | |
| Plug 'w0rp/ale' | |
| Plug 'flazz/vim-colorschemes' | |
| Plug 'jceb/vim-orgmode' | |
| Plug 'gauteh/vim-cppman' | |
| call plug#end() | |
| "theme setup | |
| syntax enable " I have no idea what this actually does | |
| set background=dark | |
| colorscheme dracula |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment