syntax on set ruler " Show the line and column numbers of the cursor. set formatoptions+=o " Continue comment marker in new lines. set textwidth=0 " Hard-wrap long lines as you type them. set modeline " Enable modeline. "set esckeys " Cursor keys in insert mode. set linespace=0 " Set line-spacing to minimum. set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J) " More natural splits set splitbelow " Horizontal split below current. set splitright " Vertical split to right of current. if !&scrolloff set scrolloff=3 " Show next 3 lines while scrolling. endif if !&sidescrolloff set sidescrolloff=5 " Show next 5 columns while side-scrolling. endif set display+=lastline set nostartofline " Do not jump to first character with page commands. set noerrorbells " No beeps set backspace=indent,eol,start " Makes backspace key more powerful. set showcmd " Show me what I'm typing set showmode " Show current mode. set noswapfile " Don't use swapfile set nobackup " Don't create annoying backup files set encoding=utf-8 " Set default encoding to UTF-8 set autowrite " Automatically save before :next, :make etc. set autoread " Automatically reread changed files without asking me anything set laststatus=2 set fileformats=unix,dos,mac " Prefer Unix over Windows over OS 9 formats set showmatch " Do not show matching brackets by flickering set incsearch " Shows the match while typing set hlsearch " Highlight found searches set ignorecase " Search case insensitive... set smartcase " ... but not when search pattern contains upper case characters set gdefault " Use 'g' flag by default with :s/foo/bar/. set magic " Use 'magic' patterns (extended regular expressions). " Use to clear the highlighting of :set hlsearch. if maparg('', 'n') ==# '' nnoremap :nohlsearch endif " Search and Replace nmap s :%s//g " Leader key is like a command prefix. "let mapleader='z' "let maplocalleader='\' let g:python_host_prog="/usr/local/bin/python2.7" let g:session_autosave = 'yes' let g:session_autoload = 'yes' let g:session_default_to_last = 1 " set cursorcolumn nmap vmap x " Plugins here call plug#begin('~/.config/nvim/plugged') Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' " Plug 'Shougo/deoplete.nvim' Plug 'Valloric/YouCompleteMe' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'Chiel92/vim-autoformat' Plug 'scrooloose/nerdtree' Plug 'terryma/vim-multiple-cursors' Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'junegunn/fzf.vim' Plug 'crusoexia/vim-monokai' Plug 'projekt0n/github-nvim-theme' Plug 'neovim/nvim-lspconfig' Plug 'nvim-treesitter/nvim-treesitter' Plug 'mfussenegger/nvim-dap' Plug 'rcarriga/nvim-dap-ui' Plug 'theHamsta/nvim-dap-virtual-text' Plug 'ray-x/guihua.lua' " float term, codeaction and codelens gui support Plug 'ray-x/go.nvim' call plug#end() lua <