diff --git a/doc.md b/doc.md index 47ed98bb..2ac8bdf6 100644 --- a/doc.md +++ b/doc.md @@ -1301,9 +1301,9 @@ Command `cmap` is used to bind a key on the command line to a command line comma You can delete an existing binding by leaving the expression empty: - map gh # deletes 'gh' mapping in normal and visual mode - nmap v # deletes 'v' mapping in normal mode - vmap o # deletes 'o' mapping in visual mode + map gh # deletes 'gh' mapping in Normal and Visual mode + nmap v # deletes 'v' mapping in Normal mode + vmap o # deletes 'o' mapping in Visual mode cmap # deletes '' mapping Command `cmd` is used to define a custom command: diff --git a/doc.txt b/doc.txt index b3f1e099..7053b0b3 100644 --- a/doc.txt +++ b/doc.txt @@ -1435,9 +1435,9 @@ command or any other command: You can delete an existing binding by leaving the expression empty: - map gh # deletes 'gh' mapping in normal and visual mode - nmap v # deletes 'v' mapping in normal mode - vmap o # deletes 'o' mapping in visual mode + map gh # deletes 'gh' mapping in Normal and Visual mode + nmap v # deletes 'v' mapping in Normal mode + vmap o # deletes 'o' mapping in Visual mode cmap # deletes '' mapping Command cmd is used to define a custom command: diff --git a/eval.go b/eval.go index 7d92318f..d30d3a4f 100644 --- a/eval.go +++ b/eval.go @@ -2346,8 +2346,8 @@ func (e *callExpr) eval(app *app, args []string) { app.nav.selectionInd++ } } - // resetting visual mode here instead of inside `normal()` - // allows us to use visual mode inside search, find etc. + // resetting Visual mode here instead of inside `normal()` + // allows us to use Visual mode inside search, find etc. dir.visualAnchor = -1 normal(app) case "visual-unselect": diff --git a/lf.1 b/lf.1 index b27518cb..595ffb51 100644 --- a/lf.1 +++ b/lf.1 @@ -1250,9 +1250,9 @@ cmap set incsearch! You can delete an existing binding by leaving the expression empty: .IP .EX -map gh # deletes \(aqgh\(aq mapping in normal and visual mode -nmap v # deletes \(aqv\(aq mapping in normal mode -vmap o # deletes \(aqo\(aq mapping in visual mode +map gh # deletes \(aqgh\(aq mapping in Normal and Visual mode +nmap v # deletes \(aqv\(aq mapping in Normal mode +vmap o # deletes \(aqo\(aq mapping in Visual mode cmap # deletes \(aq\(aq mapping .EE .PP diff --git a/opts.go b/opts.go index a994a831..a40f731c 100644 --- a/opts.go +++ b/opts.go @@ -276,7 +276,7 @@ func init() { gOpts.numberfmt = "\033[33m" gOpts.tagfmt = "\033[31m" - // normal and visual mode + // Normal and Visual mode keys := map[string]expr{ "k": &callExpr{"up", nil, 1}, "": &callExpr{"up", nil, 1}, @@ -352,20 +352,20 @@ func init() { "gh": &callExpr{"cd", []string{"~"}, 1}, } - // insert bindings that apply to both normal & visual mode first + // insert bindings that apply to both Normal & Visual mode first gOpts.nkeys = maps.Clone(keys) - // now add normal mode specific ones + // now add Normal mode specific ones gOpts.nkeys[""] = &listExpr{[]expr{&callExpr{"toggle", nil, 1}, &callExpr{"down", nil, 1}}, 1} gOpts.nkeys["V"] = &callExpr{"visual", nil, 1} gOpts.nkeys["v"] = &callExpr{"invert", nil, 1} - // now do the same for visual mode + // now do the same for Visual mode gOpts.vkeys = maps.Clone(keys) gOpts.vkeys[""] = &callExpr{"visual-discard", nil, 1} gOpts.vkeys["V"] = &callExpr{"visual-accept", nil, 1} gOpts.vkeys["o"] = &callExpr{"visual-change", nil, 1} - // command line mode bindings can be assigned directly + // Command-line mode bindings can be assigned directly gOpts.cmdkeys = map[string]expr{ "": &callExpr{"cmd-insert", []string{" "}, 1}, "": &callExpr{"cmd-escape", nil, 1},