-
Notifications
You must be signed in to change notification settings - Fork 0
vim
Nuno Nogueira edited this page Jun 16, 2024
·
18 revisions
- sudo apt
install vim vim-gtk3 vim-airline
- Create/copy global config file for vim:
install -D /etc/vimrc ~/.vim/.vimrc
Check HERE my configuration file
- Uncoment in
~/.vimrc
or add if not:
let g:skip_defaults_vim = 1
syntax on
set background=dark
set showcmd
set incsearch
set hidden
set mouse=a
- Add to
~/.vimrc
:
set clipboard=unnamedplus "enable clipboard
filetype plugin on "enable syntax highlighting for many programming languages
"set number "column number
set relativenumber "column relative numbers
set nu "show line number when relativenumber
set hlsearch "search all document
set nowrap "no wraping text allowed
set scrolloff=10 "cursor stay away when scrolling
set termguicolors
set colorcolumn=80
set signcolumn=yes
- Add to
~/.vimrc
:let g:airline_theme='powerlineish'
- More info at https://github.com/vim-airline/vim-airline-themes#using-a-theme
- Add to
~/.vimrc
:g:airline_powerline_fonts = 1
- More info at https://github.com/vim-airline/vim-airline#integrating-with-powerline-fonts
- Add to
~/.vimrc
:let g:airline#extensions#tabline#enabled = 1
- More info at https://github.com/vim-airline/vim-airline#smarter-tab-line
- vim-plug GitHub: https://github.com/junegunn/vim-plug
- To install new plugins visit: https://vimawesome.com or/and https://github.com/topics/vim-plugins
- Search for the plug and copy it to
~/.vimrc
like:Plug 'x?x?x?x/x?x?x?x'
NOT->Plugin 'x?x?x?x/x?x?x?x'
- Run in vim
:sorce %
to check if the sources are OK and:PlugInstall
to install the plugs