Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
drichardson committed Apr 19, 2020
1 parent 057597b commit 7b1b0d2
Showing 1 changed file with 29 additions and 21 deletions.
50 changes: 29 additions & 21 deletions Vim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,34 @@ applies to other environments as well.

Vim's built in functionality is used as much as possible, instead of relying on plugins.

## Code Navigation: Browsing with netrw
# Navigating Source Code

Navigating source code includes:

- Browsing directories
- Opening by filename or pattern
- Searching file contents
- Jumping to tags

## Browsing Directories

Documentation: [netrw](https://vimhelp.org/pi_netrw.txt.html)

```vim
:e source/code/directory
```

## Code Navigation: Open
## Opening Files

Documentation: [edit-a-file](https://vimhelp.org/editing.txt.html#edit-a-file)

### By Filename

```
:e source/code/directory/file.cpp
```

## Code Navigation: Open with Pattern
## By Pattern

Documentation: [file-searching](https://vimhelp.org/editing.txt.html#file-searching)

Expand All @@ -37,21 +48,13 @@ To recursively search for files matching a pattern from the current directory:
:e **/f*.cpp
```

https://vimhelp.org/options.txt.html#%27wildmenu%27


If there are more than one result, the first one will be used. To pick an option from a list instead using the [`wildmenu`](https://vimhelp.org/options.txt.html#%27wildmenu%27):

```
:e **/f*.cpp<TAB>
```

## Quickfixing Build Errors

Documentation: [quickfix](https://vimhelp.org/quickfix.txt.html)


## Code Search
## Search File Contents

Documentation: [quickfix](https://vimhelp.org/quickfix.txt.html)

Expand Down Expand Up @@ -136,15 +139,7 @@ These mappings work with all quickfix windows (search results and build results)
- F5: go to a previous error/search result list
- F6: go to a newer error/search result list


## Code Completion

Documentation:

- [`'completefunc'`](https://vimhelp.org/options.txt.html#%27completefunc%27)
- [`'omnifunc'`](https://vimhelp.org/options.txt.html#%27omnifunc%27)

### ctags
### Jumping to Tags

Documentation:

Expand All @@ -162,6 +157,19 @@ Documentation:
- CTRL-] - goto tag under cursor
- :tselect SomeSymbol - open list of matching tags


# Building

Documentation: [quickfix](https://vimhelp.org/quickfix.txt.html)

# Code Completion

Documentation:

- [`'completefunc'`](https://vimhelp.org/options.txt.html#%27completefunc%27)
- [`'omnifunc'`](https://vimhelp.org/options.txt.html#%27omnifunc%27)


#### Tag Base Code Completion

You can also use the tags database for code completion with
Expand Down

0 comments on commit 7b1b0d2

Please sign in to comment.