Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dougsland/vim-tips
Just another notes from VIM
https://github.com/dougsland/vim-tips
Last synced: 4 days ago
JSON representation
Just another notes from VIM
- Host: GitHub
- URL: https://github.com/dougsland/vim-tips
- Owner: dougsland
- License: apache-2.0
- Created: 2021-03-18T20:19:01.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-26T21:31:52.000Z (over 3 years ago)
- Last Synced: 2024-11-18T07:14:09.090Z (about 1 month ago)
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
- [vim-tips](#vim-tips)
* [To paste code](#to-paste-code)
+ [Set paste mode](#set-paste-mode)
+ [Disable paste mode:](#disable-paste-mode-)
+ [Set a keyboard key to pastemode](#set-a-keyboard-key-to-pastemode)
+ [Show when insert mode is set](#Show-when-insert-mode-is-set)
+ [Do not highlight searched words](#Do-not-highlight-searched-words)
+ [Autoindent](#Autoindent)
+ [Set Tab](#Set-Tab)
+ [Convert tabs to spaces](#Convert-tabs-to-spaces)
+ [Turn on syntax highlighting](#Turn-on-syntax-highlighting)# vim-tips
Just another notes from VIM## Turn on syntax highlighting
No need to use the set word, just syntax on
```
:syntax on
```## Set Tab
Sets a tab to be four spaces
```
:set tabstop=4
```## Convert tabs to spaces
```
:set expandtab
```
## Autoindent
```
:set autoindent
```## Do not highlight searched words
```
:set nohlsearch
```## Show when insert mode is set
```
:set showmode
```
## To paste code
### Set paste mode
```
:set paste
```### Disable paste mode:
```
:set nopaste
```### Set a keyboard key (F2) to pastemode
```
$ ~/.vimrc
set pastetoggle=
```